#ifndef MAPWIDGET_H
#define MAPWIDGET_H

#include <QWidget>
#include <QPushButton>
#include "swapboom.h"

class MapWidget : public QWidget, protected Swapboom
{
    Q_OBJECT
public:
    explicit MapWidget(QWidget *parent = 0);

signals:

public slots:
    void clicked();
    void rightClicked();

private:
    void failure();
    void win();
    void updateMp();
    QPushButton *buttons[100][100];
};

class SButton : public QPushButton
{
    Q_OBJECT
signals:
    void rightClicked();
    void leftClicked();

protected:
    void mousePressEvent(QMouseEvent *event);
};

#endif // MAPWIDGET_H
